﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace Entity.shangping
{
    /// <summary>
    /// 商品分类
    /// </summary>
    [Table("t_shop_goods_type")]
    public class GoodsType
    {

        /// <summary>
        /// 商品分类ID
        /// </summary>
        [Key]
        public string ID { get; set; }

        /// <summary>
        /// 名称
        /// </summary>

        public string Name { get; set; }

        /// <summary>
        /// 状态0停用，1表示启用
        /// </summary>

        public int Status { get; set; }

        /// <summary>
        /// 状态描述
        /// </summary>
        public string StatusDesc
        {
            get
            {
                if (Status == 1)
                {
                    return "启用";
                }
                else if (Status == 0)
                {
                    return "停用";
                }
                else
                {
                    return "";
                }

            }
        }

       /// <summary>
       /// 创建时间
       /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
